# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-otp
pkgver=2.2.7
pkgrel=2
pkgdesc="Python One Time Password Library"
url="https://github.com/pyauth/pyotp"
arch="all"
license="MIT"
depends="python3"
makedepends="python3-dev py3-setuptools"
source="https://pypi.io/packages/source/p/pyotp/pyotp-$pkgver.tar.gz"
builddir="$srcdir/pyotp-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="d8fe8a737c75b1731042ffc7213eb20851fd31ee3583511a8db6c2adb171c63d6f2620d50921997836cbf34c37829d4f0bd44d8955ee66a1bec7e94e2368e19d  pyotp-2.2.7.tar.gz"
